package com.ruoyi.platform.service.impl;

import java.util.List;

import com.ruoyi.platform.domain.TUserFeedback;
import com.ruoyi.platform.mapper.TUserFeedbackMapper;
import com.ruoyi.platform.service.ITUserFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户反馈信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TUserFeedbackServiceImpl implements ITUserFeedbackService
{
    @Autowired
    private TUserFeedbackMapper tUserFeedbackMapper;

    /**
     * 查询用户反馈信息
     * 
     * @param feedbackId 用户反馈信息主键
     * @return 用户反馈信息
     */
    @Override
    public TUserFeedback selectTUserFeedbackByFeedbackId(Long feedbackId)
    {
        return tUserFeedbackMapper.selectTUserFeedbackByFeedbackId(feedbackId);
    }

    /**
     * 查询用户反馈信息列表
     * 
     * @param tUserFeedback 用户反馈信息
     * @return 用户反馈信息
     */
    @Override
    public List<TUserFeedback> selectTUserFeedbackList(TUserFeedback tUserFeedback)
    {
        return tUserFeedbackMapper.selectTUserFeedbackList(tUserFeedback);
    }

    /**
     * 新增用户反馈信息
     * 
     * @param tUserFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int insertTUserFeedback(TUserFeedback tUserFeedback)
    {
        return tUserFeedbackMapper.insertTUserFeedback(tUserFeedback);
    }

    /**
     * 修改用户反馈信息
     * 
     * @param tUserFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int updateTUserFeedback(TUserFeedback tUserFeedback)
    {
        return tUserFeedbackMapper.updateTUserFeedback(tUserFeedback);
    }

    /**
     * 批量删除用户反馈信息
     * 
     * @param feedbackIds 需要删除的用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteTUserFeedbackByFeedbackIds(Long[] feedbackIds)
    {
        return tUserFeedbackMapper.deleteTUserFeedbackByFeedbackIds(feedbackIds);
    }

    /**
     * 删除用户反馈信息信息
     * 
     * @param feedbackId 用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteTUserFeedbackByFeedbackId(Long feedbackId)
    {
        return tUserFeedbackMapper.deleteTUserFeedbackByFeedbackId(feedbackId);
    }
}
